package com.ebocy.hammer.battle.fight.message;

import com.ebocy.hammer.core.constants.GameMessageCode;
import com.ebocy.hammer.core.message.AbstractC2SMessage;

public class C2SBreakBlockMessage extends AbstractC2SMessage {
	public byte row;
	public byte column;
	public long[] deadPlayerId;

	@Override
	public short getMessageCode() {
		return GameMessageCode.BATTLE_BREAK_BLOCK;
	}

	@Override
	public void readMessage() {
		this.row = readByte();
		this.column = readByte();
		String[] playerIdStrArray = readStringArray();
		deadPlayerId = new long[playerIdStrArray.length];
		for (int i = 0; i < playerIdStrArray.length; i++)
			deadPlayerId[i] = Long.parseLong(playerIdStrArray[i]);
	}


}
